package com.jic.market.api.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.rest.SeckillInfoRequest;
import com.jic.market.request.rest.seckill.CheckSeckillRequest;
import com.jic.market.request.rest.seckill.QueryGoodsListRequest;
import com.jic.market.request.rest.seckill.SeckillTimeListRequest;
import com.jic.market.response.rest.SeckillArrResponse;
import com.jic.market.response.rest.SeckillInfoResponse;
import com.jic.market.response.rest.seckill.QueryGoodsListResponse;
import com.jic.market.response.rest.seckill.SeckillTimeListResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * @author : xuyongliang
 * @date : 2020/1/17 2:31 PM
 * @description: 秒杀H5接口
 * @modified By:
 * @version: V1.0
 */

@FeignClient(name = "jic-market",path = "/rest/seckill")
public interface SeckillRestApi {

    @PostMapping("/checkSeckillProduct")
    RestResult<Boolean> checkSeckillProduct(@RequestBody CheckSeckillRequest request);

//    /**
//     * 秒杀列表
//     * @param request
//     * @return
//     */
//    RestResult<List<SeckillTimeListResponse>> seckillTimeList(SeckillTimeListRequest request);
//
//    /**
//     * 查询时间段下商品列表
//     * @param queryGoodsListRequest
//     * @return
//     */
//    RestResult<PageResult<QueryGoodsListResponse>> queryGoodsList(QueryGoodsListRequest queryGoodsListRequest);

}
